home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / nettrek / .macros < prev    next >
Text File  |  1994-06-30  |  9KB  |  231 lines

  1. ###############################################################################
  2. #      Macro stuff
  3. ###############################################################################
  4. #Standard:
  5. #
  6. #%a      armies carried by sender
  7. #%d      sender damage percentage
  8. #%s      sender shield percentage
  9. #%f      sender fuel percentage
  10. #%w      sender wtemp percentage
  11. #%e      sender etemp percentage
  12. #%t      team id character of target planet
  13. #%T      team id character of sender team
  14. #%c      sender id character
  15. #%n      armies on target planet
  16. #%E      1 if etemped, 0 if not
  17. #%W      1 if wtemped, 0 if not
  18. #%S      sender two character ship type
  19. #%p      id character of target player
  20. #%g    id char of target friendly player
  21. #%h    id char of target enemy player
  22. #%P      id character of player nearest sender
  23. #%G    id char of friendly player nearest sender
  24. #%H    id char of enemy player nearest sender
  25. #%l      three character name of target planet
  26. #%i    sender full player name (16 character max)
  27. #%u    full name of target player (16 character max)
  28. #%z    3 letter team id of target planet
  29. #%b      sender nearest planet
  30. #%*    abort macro immediately, sending nothing
  31. #%     <space> sends nothing - allows macros to start with spaces
  32. #%2    1 if on a paradise server, 0 otherwise
  33. #
  34. #FULLY CAPITALIZED:
  35. #%L    three character name of target planet
  36. #%I    sender full player name (16 character max)
  37. #%U    full name of target player (16 character max)
  38. #%Z    3 letter team id of target planet
  39. #%B      sender nearest planet
  40. #
  41. #Ping stats: (may differ slightly from server '!' ping stats)
  42. #%v    average ping stat round trip time
  43. #%V    ping stat round trip standard deviation
  44. #%y    percent total packet loss as calculated by server formula
  45. #
  46. #Miscellanous:
  47. #%m      the last message you sent
  48. #%M    the last message you sent in all caps
  49. #
  50. #As a further extension to NEWMACRO, a macro may now be sent
  51. #to any of the following destinations:
  52. #
  53. #%i %I %c    send message to self
  54. #%u %U %p    send message to player nearest mouse
  55. #%t %z %Z    send message to team of player nearest mouse
  56. #%g        send message to nearest friendly player to my ship
  57. #%h        send message to nearest enemy player to my ship
  58. #
  59. #Further, tests may be done within the macro system, the syntax
  60. #for these test is as follows.
  61. #%?    introduces a test
  62. #=    equivalence
  63. #>    greater
  64. #<    less
  65. #
  66. #Expressions are evaluated on a character by character basis until the
  67. #test is resolved.  The text of the test is then replaced in the macro
  68. #by 1 or 0.
  69. #
  70. #Test are then fed to a syntax I call conditional text.  The best way
  71. #to demonstrate how this works is example.
  72. #
  73. #1%{included if true%!included if false%}
  74. #
  75. #This would print:
  76. #included if true
  77. #
  78. #0%{included if true%!included if false%}
  79. #included if false
  80. #
  81. # Paradise orthoganal macros (Robert Forsman)
  82. #
  83. #   start with a $
  84. #
  85. #   field 1:
  86. #   (n)earest
  87. #   (t)arget
  88. #   (s)elf    (doesn't have fields 2 and 3)
  89. #   (_) ego    (has no other fields)
  90. #
  91. #   field 2:
  92. #   (a)ny
  93. #   (t)eammate
  94. #   (f)riendly
  95. #   (h)ostile
  96. #
  97. #   field 3:
  98. #   (a)ny
  99. #   (u)ser
  100. #   (p)lanet (includes asteroids)
  101. #   (s)tar
  102. #   (n)ebula
  103. #   (b)lack hole
  104. #   (^) non-planet
  105. #   (*) any stellar object
  106. #
  107. #   field 4: (optional)        NYI
  108. #   (U)ppercase
  109. #   (C)apitalize
  110. #   (L)owercase
  111. #
  112. #   field 5:
  113. #   full (n)ame (Hammor, Thought)
  114. #   (i)dentifier (e.g. R5, Ka, Can, Sco)
  115. #   (#) number (0-9a-z for players, %d for planets)
  116. #   (t)eam name (Romulan)
  117. #   (s)hort team id (ROM)
  118. #   (l)etter of team (R)
  119. #   (a)rmies
  120. #   (@) sector
  121. #   (M) 0=not metal planet, 1=metal, 2=repair, 3=shipyard
  122. #   (A) 0=not arable, 1=arable, 2=agri
  123. #   (D) 0=not dilithium, 1=dilithium, 2=fuel
  124. #
  125. #   Any implementation of the paradise $ codes (subset or superset)
  126. #   must implement and document the $_ code.      -- Robert Forsman
  127. #start macros:
  128.  
  129. # new distresses
  130. #singleMacro:    E
  131. #mac.F.T:        %?%S=SB%{Your starbase (%i) is carrying %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%}%!%T%c@%B: I have %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%} on board, heading for %L%?%n<0%{ (untouched)%!@%n%}%}
  132. #mac.F.T:        %?%S=SB%{Your starbase (%i) is carrying %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%}%!%T%c@%B: I have %?%a=0%{NO%!%a%} %?%a=1%{army%!armies%} on board%}
  133. #mac.Z.T:        Going for %L NOW!!  DET for me!! (%?%a=0%{NO%!%a%} %?%a=1%{army%!armies%})
  134.  
  135. #mac.T.T:    %T%c@%B(%S): Going for %L@%n with %a %?%a=1%{ogre%!ogres%}! DET! %L@%n
  136. #mac.e.T:    %T%c@%B(%S): NEED ESCORT TO %L @ %n, Carrying %a %?%a=1%{ogre%!ogres%} DET for me!
  137. #mac.E.T:        HELP! %T%c@%B(%S): , %d%% dam, %s%% shlds, %?%S=SB%{%!%?%f<15%{NO%!%f%%%} gas%} %E%{ETMP!!%} %?%S=SB%{%w%% wtmp%}%} %?%a>0%{%a %?%a=1%{army%!armies%}%} %W%{WTEMP!!%}
  138.  
  139. mac.@.A: %       __  _           _    _    _   _   _ _
  140. mac.@.A: %      /// /X|         |X\  /X\  /X\ /X\ // \\
  141. mac.@.A: % __  /// //||         ||\\//~\\//~\\\\~//___\\
  142. mac.@.A: % \\\/// //_||MIGA     ||//\\_//\\_//_\\\\---//
  143. mac.@.A: %  \XX/ //  ||(R.I.P.?)|X/  \X/  \X/ \X/ \\ //
  144.  
  145. #mac.o.T:    OGGING BASE NOW!!! $thuUi@%L
  146. #mac.O.T:    OGG $thuUi@%L
  147. ##############################
  148. mac.'.%i:    %n armies on %L
  149. mac.m:        %m
  150. mac.V:        %T%c PING stats: Round Trips: %v ms +/- %V ms, Loss: %y%%
  151. mac.v:        %T%c PING stats: WORSE THAN YOURS!
  152. ##############################
  153.  
  154. # normal distress keys
  155.  
  156. #mac.E.T:        %T%c@%B(%S): HELP! %?%d>70%{HULL GONE! %!%?%d>35%{%d%% dam %}%}%?%s<10%{SHLDS OUT! %!%?%s<60%{%s%% shlds %}%}%?%f<50%{%?%f<15%{NO %!%f%% %}fuel! %}%E%{ETEMP! %}%W%{WTEMP! %}%?%a>0%{%a %?%a=1%{ogre%!ogres%}%}
  157. #mac.F.T:        %?%S=SB%{Your starbase (%T%c) is carrying %?%a=1%{one smelly ogre%!%?%a=0%{NO%!%a%} ogres%}%!%T%c@%B(%S): %?%a=0%{no ogres on board!%!carrying %?%a=1%{one smelly ogre!%!%a vicious ogres!%}%}%}
  158.  
  159. #mac.k.T: %L! Get to %L NOW!
  160. #mac.T.T: %S@%B: Going for %L @ %n with %a %?%a=1%{hungry ogre%!ferocious ogres%}! DET! %L!
  161. #mac.t.T: %S@%B: Going for %L @ %n with %a %?%a=1%{hungry ogre%!ferocious ogres%}! DET! %L!
  162. #mac.p.T: %S@%B: Going for %L @ %n with %a %?%a=1%{hungry ogre%!ferocious ogres%}! DET! %L!
  163. #mac.p.T: I have %a amiga user%?%a=1%{%!s%} to bother %L @ %n. DET!
  164.  
  165. #dist.taking:  %T%c(%S) %B: Carrying %a to %L%?%n>-1%{ @ %n%}
  166. #dist./.help:    %T%c(%S) %B: HELP! %d%% dmg, %s%% shd, %f%% fuel,%?%S=SB%{ %w%% wtmp,%!%}%E%{ ETEMP!%}%W%{ WTEMP!%} %a armies!
  167. dist.help1:   %T%c(%S) %B: Help! %d%% dam, %s%% shd, %f%% fuel %a armies.
  168. dist.help2:   %T%c(%S) %B: Help! %d%% dam, %s%% shd, %f%% fuel %a armies.
  169.  
  170.  
  171. dist./.save_planet:     %i(%T%c): SAVE %L @ %n
  172. dist...space_control:   %i(%T%c): Help control %L @ %n
  173. #dist.E.help:            %T%c(%S) %B: HELP! %d%% dmg, %s%% shd, %f%% fuel,%?%S=SB%{ %w%% wtmp,%!%}%E%{ ETEMP!%}%W%{ WTEMP!%} %a armies!
  174. dist.E.help:            %T%c(%S) %B: HELP! %?%d>90%{HULL GONE! %!%?%d>20%{%d%% dam %}%}%?%s<10%{SHLDS OUT! %!%?%s<80%{%s%% shd %}%}%?%f<10%{NO %!%f%% %}fuel %?%S=SB%{%w%%wtmp%}%E%{ETEMP! %}%W%{WTEMP! %}%?%a>0%{%a %?%a=1%{ogre%!ogres%}%}
  175. dist.F.carrying:        %T%c(%S) %B: %?%S=SB%{Your starbase is %}carrying %a armies.
  176. dist.+.pickup:          %i(%T%c): %p++ @ %l
  177. dist.p.taking:          %T%c(%S) %B: Carrying %a to %l%?%n>-1%{ @ %n%}
  178. dist.P.taking:        %T%c(%S) %B: Carrying %a to %l%?%n>-1%{ @ %n%}
  179. dist.o.ogg:             %i(%T%c): Ogg %h @ %l
  180. dist.b.base_ogg:        %i: ---------BASE OGG!!!! sync me(%c) and %g--------
  181. dist.B.bomb:            %i(%T%c): bomb %?%n>4%{%l @ %n%!%?%n<0%{%l (untouched)%}
  182. dist.^b.bomb:            %i(%T%c): bomb %?%n>4%{%l @ %n%!%?%n<0%{%l (untouched)%}
  183. dist.e.escorting:       %T%c(%S) %B: ESCORTING %g (%d%%D %s%%S %f%%F%?%a>0%{%a armies%})
  184. dist.c.crippled:        %i(%T%c): %p @ %l crippled
  185.  
  186. singlemacro: P^b
  187. #singlemacro: +
  188. #carrier+closest planet in yellow
  189. lite.carrying:  %?%a>0%{/cy/by%}
  190. #planet+closest enemy cyan
  191. lite.space_control: /lc/hc
  192. #planet+closest enemy red
  193. lite.save_planet: /lr/hr
  194. #player+cl. plan yellow
  195. lite.pickup: /pr/ly
  196. #oggee in green
  197. lite.ogg: /hg
  198. #taker, target in red
  199. lite.taking: /cr/lr
  200. #if SB, SB white, me cyan. else if armies, sender red, if no armies, sender grey
  201. lite.help: %?%S=SB%{/cw/mc%!%?%a>0%{/cr%!/ce%}%}
  202. #sender, closest to sender in green
  203. lite.base_ogg: /cg/gg
  204. #escort+taker in cyan
  205. lite.escorting: /cc/pc
  206. #crippled enemy in grey
  207. lite.crippled: /he
  208.  
  209. Uselite:        off
  210. playerCycleTime: 20
  211. planetCycleTime: 20
  212.  
  213. #mac.C.T:    Clear %L NOW! $tapCn has %n armies on it.
  214. #mac.B.T:    BOMB %L@%n
  215. mac.A.T:    %L @ %n.
  216. mac.1.T:    WARP 1! WARP ONE!  OGG BASE! IT'S AT WARP 1!
  217. mac./.T:    Need help at %B NOW!
  218. mac.S.T:        %T%c(%S): Help kill %h near %B
  219.  
  220. # to nearest team-mate
  221. mac.f.%G:       I'm fine
  222. mac.h.%G:       %d dmg, %s shld, %f fuel, %?%a=1%{army%!armies%}
  223.  
  224. mac.P.!:    status
  225. mac.N.!:    dtelnet metaserver.ecst.csuchico.edu 3521
  226. mac.x.!:    rx emacs para:.paradiserc
  227. mac.W.!:    csh -c ntw
  228.  
  229. #singleMacro:    EF
  230.  
  231.